package com.zl.smartmall.library.util;

public class Constants {

	public static final int USER_TYPE_EMAIL = 1;
	public static final int USER_TYPE_QQ = 2;

	public static final int REQ_UNKNOW = -1;//无请求
	public static final int REQ_OK = 0x0;//请求成功
	public static final int REQ_FAILED = 0x1;//请求失败
	public static final int REQ_OFFLINE = 0x2;//离线状态，需要重新登录
	public static final int REQ_NO_MORE_DATA = 0x4;//没有更多数据
	public static final int REQ_DATA_SIZE_LIMIT = 30;//网络数据返回条数
	
	public static final int MSG_LOAD_CACHE_FINISH = 1;
	public static final int MSG_CLEAR_CACHE_FINISH = 2;
	public static final int MSG_SAVE_CACHE_FINISH = 3;
	public static final int MSG_LOAD_CHAT_RECORD_FINISH = 4;
	/**
	 * 加载品牌商品列表完成
	 */
	public static final int MSG_LOAD_BRANDED_PRODUCTS_FINISH = 5;
	
	public static final int LOGIN_TYPE_QQ = 101;
	public static final int LOGIN_TYPE_ACCOUNT = 102;
	
	public static final int GENDER_FEMALE = 0;
	public static final int GENDER_MALE = 1;

	
	public static final int IM_MSG_SEND_FROM_OTHER = 0;
	public static final int IM_MSG_SEND_FROM_ME = 1;
	
	/**
	 * 聊天消息类型：文本
	 */
	public static final int CHAT_MSG_TYPE_CHARACTERS = 1;
	/**
	 * 聊天消息类型：图片
	 */
	public static final int CHAT_MSG_TYPE_PICTURE = 2;
	/**
	 * 聊天消息类型：声音
	 */
	public static final int CHAT_MSG_TYPE_AUDIO = 3;

	public static final int ADVERT_TYPE_BRANDS_LIST = 2;
	public static final int ADVERT_TYPE_PRODUCT_DETAIL = 4;
	
	/**
	 * 商城活动(首)页广告
	 */
	public static final int ADVERT_AFFILIATION_ACTIVITIES = 1;
	/**
	 * 品牌商品列表页广告
	 */
	public static final int ADVERT_AFFILIATION_BRANDED_PRODUCTS = 2;
	/**
	 * 订单送货方式: 货到付款
	 */
	public static final int PAY_ON_DELIVERY = 0;
	/**
	 * 订单送货方式: 自提
	 */
	public static final int TAKE_SELF = 1;
	
	public static final String ACTION_EXIT_WHOLE_APP = "com.holdfun.superstyle.action.EXIT_WHOLE_APP";
	public static final String ACTION_RECEIVE_IM_MESSAGE = "com.zl.smartmall.library.action.RECEIVE_IM_MESSAGE";
	public static final String ACTION_SEND_IM_TEXT_MESSAGE = "com.zl.smartmall.library.action.SEND_IM_TEXT_MESSAGE";
	public static final String ACTION_SEND_IM_IMG_MESSAGE = "com.zl.smartmall.library.action.SEND_IM_IMG_MESSAGE";
	public static final String ACTION_CHANGE_COMMUNITY = "com.zl.smartmall.library.action.ACTION_CHANGE_COMMUNITY";

	public static final String FOLDER_ROOT = "/gangzhen";
	public static final String FOLDER_IMG_CACHE = "/ImgCache";
	public static final String FOLDER_IMG_TEMP_CACHE = "/ImgTempCache";//拍照或其他的临时图片缓存
	public static final String FOLDER_REPORT_CACHE = "/ReportCache";
	public static final String FOLDER_SPLASH_CACHE = "/SplashCache";
	public static final String FOLDER_ZIP_CACHE = "/ZipCache";//zip缓存
	public static final String FOLDER_APK_CACHE = "/ApkCache";
	public static final String FILE_ERROR_REPORT = "/err.log";
	public static final String FILE_BEHAVIOUS_REPORT = "/behavious.log";
	public static final String FILE_APK = "/tangchen.apk";
	
	public static final String REQ_MSG = "msg";
	public static final String REQ_RESULT = "result";
	public static final String REQ_STATUS = "ret";
	
	
	public static final String PREFERENCE_KEY_UID = "key_uid";//用户id
	public static final String PREFERENCE_KEY_TOKEN = "key_token";//请求token
	public static final String PREFERENCE_KEY_LOGIN_PLATFORM = "key_login_platform";//登录平台
	public static final String PREFERENCE_KEY_HAS_COMMUNITY = "key_has_community";//是否已选过小区
	public static final String PREFERENCE_KEY_COMMUNITY_ID = "key_community_id";//小区id
	public static final String PREFERENCE_KEY_COMMUNITY_NAME = "key_community_name";//小区id
	public static final String PREFERENCE_KEY_HOUSEID = "key_house_id";//用户默认绑定的房间id
	
	public static final String TAG_FRAGMENT_TOPIC = "FragmentTopic";
	public static final String TAG_FRAGMENT_SEARCH_RESULT = "FragmentSearchResult";

	public static final String URL_HOST = "http://api.mylife114.com";//正式环境
	public static final String URL_HOST_RUBY = "http://mylife114.com";//正式环境
	public static final String URL_LINGLING = "http://pass.mylife114.com/api/v1";//令令开门服务
	
	//public static final String URL_HOST = "http://221.204.249.71:4002";//商城测试服务器
	//public static final String URL_HOST_RUBY = "http://ceshi.sx-soft.net";//在线缴费测试服务器
	
	
	public static final String URL_HOST_DOOR = "http://parktest.wl-pay.com/api/v1";//门禁系统(暂时不用)
	
	public static final String URL_pay_online = "http://ceshi.sx-soft.net/android_xy/client_sum_sc";
	
	public static final String URL_BRANDED_PRODUCTS = URL_HOST + "/mall/products/actmores";//查询对应商家的商品列表
	public static final String URL_LOGIN = URL_HOST + "/user/member/authlogin";//登录
	public static final String URL_LOGOUT = URL_HOST + "/user/member/loginout";//注销13313
	public static final String URL_MALL_ACTIVITIES = URL_HOST + "/mall/shop/activitiesV2";//活动(首)页
	public static final String URL_SHOPPING_CART = URL_HOST + "/mall/mycart/lists";//购物车
	public static final String URL_PRODUCT_DETAIL = URL_HOST + "/mall/products/details";//商品详情
	public static final String URL_CANCEL_ORDER = URL_HOST + "/mall/myorders/cancelOrder";//取消订单
	public static final String URL_ORDER_CONFIRMATION = URL_HOST + "/mall/myorders/confirmOrder";//订单确认
	public static final String URL_ORDER_DETAIL = URL_HOST + "/mall/myorders/orderDetail";//订单详情
	public static final String URL_ORDER_CREATE = URL_HOST + "/mall/myorders/createOrder";//提交订单
	public static final String URL_ADD_PRODUCT_TO_CART = URL_HOST + "/mall/mycart/add";//添加单种商品到购物车
	public static final String URL_ADD_PRODUCT_TO_CART_MULTI = URL_HOST + "/mall/mycart/multiAdd";//添加多种商品到购物车
	public static final String URL_SHOPPING_CART_DELETE = URL_HOST + "/mall/mycart/multiReduce";//删除商品
	public static final String URL_SHOPPING_CART_UPDATE = URL_HOST + "/mall/mycart/multiAdd";//修改商品数量
	public static final String URL_SEND_IM_MESSAGE = URL_HOST + "/user/msg/send_private_msgv3";//发送IM消息
	public static final String URL_RECEIVE_IM_MESSAGE = URL_HOST + "/user/msg/get_private_msgv3";//接收IM消息
	public static final String URL_REGISTER_CID = URL_HOST + "/user/member/uploadgetuicid";//注册CID
	public static final String URL_REGISTER_TAG = URL_HOST + "/user/member/uploadGetuiTags";//注册TAG
	public static final String URL_ALIPAY_PAY = URL_HOST + "/mall/pay/alipaysign";//支付宝支付
	public static final String URL_WECHAT_PAY = URL_HOST + "/mall/pay/weixinV3";//微信支付
	public static final String URL_GET_ALL_ADDRESSES = URL_HOST + "/mall/myorders/getAllAddress";//获取所有收货地址
	public static final String URL_HIDE_PMID= URL_HOST+"/user/msg/hidePMSGsession";//隐藏会话
	public static final String URL_REPORT_PERSON = URL_HOST + "/user/member/jubao";//举报聊天人
	public static final String URL_UPLOAD_PICTURE = URL_HOST + "/uploads/ablum";  // 图片上传
	public static final String URL_GET_PHOTO_ID = URL_HOST + "/user/photo/upload";  // 根据图片URL获取图片ID
	public static final String URL_IM_UPLOAD_PICTURE = URL_HOST + "/uploads/chatroom";  // 私信、聊天室图片上传
	public static final String URL_VERSION_UPDATE = URL_HOST + "/preload/vcv2";//版本更新
	public static final String URL_RECEIVE_SESSION = URL_HOST + "/user/dynamic/get_contactv2";//聊天列表
	public static final String URL_NEW_ADDRESS = URL_HOST +"/index.php/mall/shop/getProvince";//获取省市区
	public static final String URL_PRODUCT_EVALUATION_DETAIL = URL_HOST + "/mall/products/comments";//商品评价详情
	public static final String URL_PRODUCT_EVALUATION_UPLOAD_PICTURE = URL_HOST + "/uploads/addcommentspic";//商品评价图片上传
	public static final String URL_PRODUCT_EVALUATION_UPLOAD_CONTENT = URL_HOST + "/mall/products/addcomments";//商品评价内容上传
	public static final String URL_PARTICIPATION = URL_HOST + "/activitymsg/getamlist";//参与
	public static final String URL_GET_ORDERS = URL_HOST + "/mall/myorders/getList";//我的订单列表
	public static final String URL_CHECK_VERSION = URL_HOST + "/preload/vcv2";//检查app版本
	public static final String URL_GET_COMMUNITY_ADDRESS = URL_HOST + "/house/community_list";//获取所有小区信息
	public static final String URL_GET_FLOOR_ADDRESS = URL_HOST + "/house/house_list";//获取所有房间
	public static final String URL_APPLY_HOUSE = URL_HOST + "/house/apply_house";//提交小区房间信息，获取验证码
	public static final String URL_ADD_HOUSE = URL_HOST + "/house/add_house";//提交小区房间信息，验证验证码
	public static final String URL_GET_MY_COMMUNITY = URL_HOST + "/house/myhouse";//获取我的小区列表
	public static final String URL_SELECT_DEFAULT_COMMUNITY = URL_HOST + "/house/select_house";//选择作为默认小区
	public static final String URL_DELETE_COMMUNITY = URL_HOST + "/house/delete_house";//删除小区
	public static final String URL_GET_NOTICES = URL_HOST + "/community/notices_list";//获取公告列表
	public static final String URL_GET_INVOICE_TYPE = URL_HOST + "/mall/myorders/getInvoiceInfo";//获取发票数据
	public static final String URL_CHECK_PHOME = URL_HOST + "/user/member/checkphone";//检查电话号码
	public static final String URL_PHONE_REGISTER = URL_HOST + "/user/member/phonereg";//电话号码注册
	public static final String URL_PHONE_LOGIN = URL_HOST + "/user/member/login";//电话号码注册 
	public static final String URL_GET_PASSWORD = URL_HOST + "/user/member/getpasswordcode";//密码找回获取验证嘛
	public static final String URL_CHANGE_PASSWORD = URL_HOST + "/user/member/changepassword";//修改账户密码
	public static final String URL_WECHAT_ACCESS_TOKEN = "https://api.weixin.qq.com/sns/oauth2/access_token";//获取微信AccessToken
	public static final String URL_WECHAT_USER_INFO = "https://api.weixin.qq.com/sns/userinfo";//获取微信用户资料
	public static final String URL_SHOPPING_SEARCH= URL_HOST + "/mall/products/searchs";//根据关键字搜索商品
	public static final String URL_PRODUCT_APPLY_EXCHANGE = URL_HOST + "/mall/myorders/applyReturn";//申请退换货
	public static final String URL_PRODUCT_APPLY_EXCHANGE_UPLOAD_PICTURE = URL_HOST + "/uploads/applyReturnPic";//申请退换货图片上传
	public static final String URL_CONFIRM_THE_GOODS = URL_HOST + "/mall/myorders/editOrder";//确认收货
	public static final String UR_GET_EQUIMENT_PROJECT_ITEM = URL_HOST_RUBY + "/android_oa/app_get_item_by_repair_id";//获取报修项目
	public static final String URL_GET_EQUIMENT_LIST = URL_HOST_RUBY + "/android_oa/app_repair_apply_list";//获取维修列表
	public static final String URL_ADD_EQUIMEMT = URL_HOST_RUBY + "/android_oa/app_repair_apply";//添加维修申报
	public static final String URL_GET_MYDEFAULTADDRESS = URL_HOST + "/mall/myorders/getSelectAddress";//获取当前登录用户默认的绑定的小区
	public static final String URL_EDIT_ORDER = URL_HOST + "/mall/myorders/editOrder";//修改订单
	public static final String URL_TURE_EQUIMENT = URL_HOST_RUBY + "/android_oa/app_confirm_repair_apply"; //确认维修完成
	public static final String URL_GET_TEAMS = URL_HOST + "/house/group_list_by_community";//获取相应的组团信息
	public static final String URL_GET_BUILDING = URL_HOST + "/house/building_list_by_group";//根据组团的id获取相应的楼信息
	public static final String URL_GET_HOUSE = URL_HOST + "/house/house_list_by_building";//根据 楼的id获取相应的房屋的信息
	public static final String URL_GET_FIRST_PRODUCTS = URL_HOST + "/mall/products/getMallProductKind";//获取商品的所有分类（第一级）
	public static final String URL_GET_ASSORT_PRODUCTS = URL_HOST + "/mall/products/getKindProduct";//根据类型查商品列表
	public static final String URL_GET_ADVERTISE = URL_HOST + "/mall/shop/get_SplashScreen_list";//获取闪屏广告图片
	public static final String URL_GET_JSON_SHOP = URL_HOST + "/mall/shop/get_mall_shops_list";//获取合作，加盟商家的logo
	public static final String URL_GET_DICTPROVINCE = URL_HOST +"/house/dict_area";//查询所有的省份
	public static final String URL_GET_DICTCITY = URL_HOST +"/house/getdict_city";//查询所有的市
	public static final String URL_GET_DICTDISTRICT = URL_HOST +"/house/getdict_district";//查询所有的省份
	//public static final String URL_GET_COMMUNITY_LIST = URL_HOST + "/house/community_lists";//根据区县的id查询运营中心
	public static final String URL_GET_COMMUNITYLIST = URL_HOST + "/house/get_group_by_district_id";//根据区县的id查询所有的小区
	public static final String URL_POST_EQUIMENTIMG = URL_HOST_RUBY + "/android_oa/repair_image_upload";//上传报修的图片
	
	public static final String LOGIN_URL = URL_HOST_DOOR+"/get_phone_guest";//门禁--登陆 
	public static final String SMS_URL = URL_HOST_DOOR+"/sms";//门禁--请求验证码
	public static final String REGISTER_URL = URL_HOST_DOOR+"/sms_qx";//门禁--注册
	public static final String UPDATE_URL = URL_HOST_DOOR+"/phone_register_update";//门禁--找回密码
	public static final String KEYS_URL = URL_HOST_DOOR+"/send_phone_qx";//门禁--获取手机号关联的小区和控制器 
	public static final String RECORD_URL = URL_HOST_DOOR+"/get_guard_record_assignment_privilege";//门禁--转授权
	
	public static final String ACTIVITY = URL_LINGLING + "/active";//令令开门激活
	public static final String OPENLOGIN = URL_LINGLING + "/login";//令令开门登录
	public static final String GET_KEYS = URL_LINGLING + "/getkeys";//令令开门获取秘钥
	public static final String GET_EMS = URL_LINGLING + "/sms";//令令开门获取手机验证码
	
}
